package de.tu_darmstadt.gdi1.battleship.tests.adapters;

import de.tu_darmstadt.gdi1.battleship.exceptions.BoatFailException;
import de.tu_darmstadt.gdi1.battleship.exceptions.NumberFailException;




/**
 * This is the test adapter for the first extended stage of completion.
 * Implement all method stubs in order for the tests to work.
 * <br><br>
 * <i>Note:</i> This test adapter inherits from the minimal test adapter
 * 
 * @see BattleshipTestAdapterMinimal
 * 
 * @author Jonas Marczona
 * @author Fabian Vogt
 */
public class BattleshipTestAdapterExtended1 extends BattleshipTestAdapterMinimal {

	/**
	 * Use this constructor to initialize everything you need.
	 */
	public BattleshipTestAdapterExtended1() {
		super();
	}
	
	/**
	 * Generates an entire new level.
	 * Both the player and computer sides should be generated using the default board size and ship configuration.
	 * @see BattleshipTestAdapterMinimal#getCurrentLevelStringRepresentation()
	 */
	public void generateCompleteLevel() {
	  try {
		super.bsg.createRandomLvl();
		valid=true;
	} catch (BoatFailException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (NumberFailException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	}

}
